
Click here to view a larger version in a new browser window.
Once the design phase is completed, the application development team will take the designs that have been produced and move on to building and testing the application. To ensure that the application is built with management at the core, the development team needs to focus on ensuring that the building phase continues to correctly address the non-functional aspects of the design (responsiveness, availability, security).
The build phase covers the following topics:
The main reason for using a consistent set of design and coding conventions is to standardise the structure and coding style of an application so that everyone can easily read, understand, and manage the application development process. Good design and coding conventions result in precise, readable, and unambiguous source code that is consistent with the organisational coding and management standards, and is as intuitive to follow as possible. Adding application operability into this convention ensures that all applications are built in a way that ensures that they can be fully managed all the way through their lifecycles.
A general-purpose set of conventions should define the minimum requirements necessary to accomplish the purposes discussed above, leaving the programmer free to create the program’s logic and functional flow. The object is to make the program easy to manage and operate without cramping the programmer’s natural creativity with excessive constraints and arbitrary restrictions.
A coding convention itself can be a significant aid to managing the application, as consistency allows the management tools to interact with the application in a known way. It is better to introduce a minimum set of conventions that everyone will follow rather than to create an overly complex set that encompasses every facet but is not followed or used consistently across the organisation.
A number of development tools provide a variety of templates for creating common application components. Rather than creating all the pieces of an application from scratch, developers can customise an existing template. They can also reuse custom components in multiple applications by creating their own templates.
Other development tools will generate large pieces of code (skeletons) based on the design models and coding conventions. The code could include hooks at the code pieces that need to be added.
Section 4.2 discusses the use of application frameworks. Application frameworks can cover many of the non-functional requirements in a way that is standard among a number of applications with similar characteristics.
In this respect, templates and application frameworks should be considered assets. These assets not only guide the building of applications, but also incorporate the lessons learned or intellectual capital from previous application development efforts. The more that standard components are designed into the solution, the faster applications can be developed, against lower costs in the long term (not ignoring the fact that development of templates, code generators, and application frameworks requires significant investment).
The application design phase introduced the concept of embedded application instrumentation. The build phase deals with incorporating the instrumentation into the fabric of the application.
Developers need a consistent way to provide instrumentation for application drivers (e.g. database drivers) and applications, that is efficient and easy to implement. To keep application developers from reinventing the wheel with every new application they develop, the computer industry provides methods and technologies to simplify and facilitate the instrumentation process. These include:
Each of these technologies provides a consistent and richly descriptive model of the configuration, status, and operational aspects of applications and systems. These are provided through programming Application Program Interfaces (APIs) that the developer incorporates into an application, normally through the use of standard programming templates.
It is important to ensure that all applications are built to conform to some level of compliance for the application instrumentation. Ways in which to do this could include:
Good practice is to build in diagnostic hooks that can be turned on or off, so that, if something goes wrong in testing or live production use, it is relatively simple to obtain key information that would help diagnose the problem.
Diagnostic hooks can be divided into three broad categories:
Diagnostic hooks are of greatest value during testing and when an error has been discovered in the production system. Diagnostic hooks provide the information necessary to solve problems and application errors.
Errors happen even in applications that have been thoroughly tested. During development, it is impossible for a developer to think of the causes of every possible error and write code accordingly. Eventually, every application, no matter how mission-critical or well developed, will experience errors.
Errors may be caused by something as simple as a change in traffic volumes or usage patterns. Hardware failures of an individual server or failed network components may also produce application errors.
Environmental changes are a huge source of errors. These errors are caused by system changes being rolled into production. Seemingly simple changes to a system component can have far-reaching impact on running applications. Additionally, database schema changes are constantly introduced by business changes and the deployment of new systems. Applications are sometimes prevented from accessing resources because of security changes.
As the application is built, it needs to be thoroughly tested to ensure that it meets all the stated requirements and features that the business has requested. Non-functional requirements should be tested as well, in a manner similar to the way basic functionality is tested.
The approach to testing can largely dictate the overall quality of the application when it ships. All too often testing is delayed to the end of the building phase just prior to deployment, and, if the development project has not run true to schedule (as is frequently the case), testing can be rushed or cut short and the overall quality of the deliverable made to suffer.
Quality should be built into an application development project from the start, and the working practices and culture of the development team should include testing as an integral and obligatory activity undertaken at every stage of the project.
Testing of non-functional requirements is a key area of testing that is often overlooked. Any test plan should contain a section that describes each of the non-functional requirements, which area of operability the requirement covers, and how it will be tested. An example of such a requirement could be the requirement that, in a disaster situation, the system can be replaced with a new system and the system state can be restored within eight hours.
Several types of tests are appropriate, including tests that are managed by the development team, such as unit testing, system testing, and integration testing, and tests managed mostly by a separate test team or by the accepting parties, such as functional acceptance testing, User acceptance testing and production acceptance testing. Not until the production acceptance testing activity are most of the non-functional requirements dynamically tested, if they are tested at all. However, in order to ensure high-quality delivery of applications to the deployment phase, testing should be an all-pervasive activity throughout the build phase. Also, just as the requirements could be used as a test basis for testing the work products of the design phase, the work products of the design phase can be used as a test basis for the build phase.
Based on the design of the applications, the test team can build the test plans and test scripts for the tests to be performed. Internal design specifications can be used for unit and system testing, while the external designs can be used to develop acceptance test plans. More details on testing are given in Chapter 7. An example of a unit test plan is shown in Figure 5.2.
Figure 5.2 – Example of a unit test plan Table of Contents
Click here to view a larger version in a new browser window.
As an application goes through several iterations or versions, it should be retested against the original test pack. Such regression testing is the only way to ensure that a bug is not introduced into an area of the application that was previously developed and tested, which can happen in a variety of ways. For example, a change in the way that an application identifies itself to the Configuration Management system might have an impact on Release Management and Incident Management. The reuse of test scripts for regression testing is an essential and integral part of building the test environment.
Another way to ensure that the test environment provides a true reflection of the live production environment is to place it under complete Change and Configuration Management as if it were the live system. This is only applicable if the new application does not require changes to the current live environment. Doing this greatly increases the chances that tests will perform in a manner similar to that of the live environment.
The testing method that is used needs to accommodate the testing of non-functional requirements for the application. This would include as a minimum the areas identified in the build management checklist.
The application should be built to meet, and be tested against, the high-level requirements for the organisation and any special management requirements that have been identified for the application. The testing process should consider all the main ITIL Service Management functions and review how the design supports these. Table 5.3 provides examples of manageability checks for the build phase.
Service Management functions | Examples of build phase manageability checks |
Configuration Management | Have the developers built the application to conform to the corporate standards that are used for Configuration Management? Does the application use only programs and tools that are considered acceptable and are included within the product catalogue? Does the application include support for version control and management? Have the developers built in the chosen CI structure to the application? |
Has the application been built and tested against the corporate Change Management process? | |
Release Management | Has the application been built and tested in ways that ensure it can be released into the environment in a simple and efficient way? |
Is the build process following security best practice for this activity? | |
Incident Management | Is a simple creation-of-Incidents process, for when something goes wrong, built into the application and tested? Has the compatibility with the organisational Incident management system been tested? |
Has the program’s ability to provide information to facilitate root cause analysis and Problem Management been tested? | |
Capacity Management | Has the application been built and tested to ensure that it meets the capacity requirements? Has the capacity information provided by the application been tested and verified? Are stress and volume characteristics built into the application? |
Availability Management | How has the application been built to address the availability requirements of the application, and how has this been tested? What testing has been done to ensure that the application meets the backup and recovery capabilities of the organisation? What happens when the application is under stress? |
Service Continuity Management | Has the application been built to support the business recovery process following a disaster, and how has this been tested? |
Service Level Management | Does the application meet the SLA requirements of the organisation, and has this been tested? |
Financial Management | Has the application been built to deliver financial information, and how is this being tested? |
Table 5.3 – Management checklist for the build phase
The build team, like the design team, requires representation from a number of the key Service Management areas. The roles include those described in previous sections for the requirements team and the design team. These roles (discussed in detail below) are needed to ensure that Application Management and Operations are fully involved in the process of building and testing the application.
By including all the key roles in testing the application, the build team will be validating all the components that affect the performance of the application once it has gone live, these being people, process, and technology. Good practice here is that no application can be signed off as having its build phase completed without the involvement and approval of all of the described roles.
The Change and Configuration Management role advises the developers on how to build the hooks and facilities into an application so that it conforms to the required Change and Configuration Management standards in use. This would include component identification, Change Control and status reporting, version control, software distribution, licence tracking, usage monitoring, and retirement information. The CCM role is also involved in advising how to test compliance with all of the above.
The main involvement of the support role is working with the testers to ensure that they are able to support the application once it has gone live. An ideal activity would be for the test team to use members from the support role to maintain the application while it is in the test environment. They can then feed back any relevant experiences directly to the developers so that supportability can be fully addressed prior to the application going live.
The Service Desk could potentially be involved in User acceptance testing. This has the advantage that End Users can report Incidents through the usual channels. Service Desk staff can gain familiarity with the new application before it goes live. Problems are captured in the Information Technology Service Management (ITSM) support tool. Experienced diagnosticians will handle Incidents efficiently, whereas development staff are not always good at diagnosis.
The operations role is similar to the support role. A member of the Operations team should actively participate in the test of the application. Ideally, the operator following the process and procedures that would be used in the live environment should run the application in a test environment.
The security role plays a major part throughout the build phase. The security role should work with the developer to ensure that the application is built to conform to organisational security standards. The role should also be involved in many other activities during this phase, but at a minimum it should assist with the following activities:
The ICT infrastructure management role should help the development and testing teams to build capacity and availability management capabilities into the application so that the application will work in a predictable manner once deployed. The role should also help the development team build against the SLA that was defined in the requirements phase. Each of these areas should then be included within the testing environment to prove that the SLA is realistic and provide feedback to the business if there are any issues identified with the SLA.